seconds_input = 43290 conversion = datetime.timedelta(seconds=seconds_input) print(str(converted_time)) #output 12:01:30